﻿@using GdHotel.Data.Meta.Models
@using GdHotel.Data.Resources
@using GdHotel.Web.Models
@model RoomsModel

@{
    ViewBag.Title = Localization.HotelRooms;
}

@section head
{
    <link rel="stylesheet" href="@Url.Content("~/Content/themes/base/jquery-ui-1.8.12.custom.css")" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/datepicker.js")" type="text/javascript"></script>
}

@section gallery{
    @if (Model != null && Model.Gallery != null)
    {
        <text>@Html.Partial("_ShowGallery", Model.PageGallery)</text>
    }
}

<div class="wrap">

    <div class="content">
        <div class="in_content down clearfix">
            <div class="block">
                @if(Model != null && Model.Page != null)
                {
                    <h1>@Model.Page.Title</h1>
                    <div class="in_block">
                        @Html.Raw(@Model.Page.Text)
                        <h4>@Localization.WeSuggest:</h4>
                        @Html.Partial("_RoomTypesPartial", Model.RoomTypes)
                    </div>
                }
                <h2>@Localization.RoomsPhotos</h2>
                @if (Model != null && Model.Gallery != null)
                {
                    var items = Model.Gallery.GetLinksAsArray();
                    <ul class="photo_list">
                        @foreach (var item in items)
                        {
                            <li>
                                <div class="shadow">
                                    <div class="photo_wrap"><a href="#" class="open">												
                                                                <img class="gl" src="@item" width="638" height="353" alt="">
                                                            </a></div>
                                </div>
                            </li>
                        }
                    </ul>
                }	
                @if (Model != null && Model.AdditionalPage != null)
                {
                    <div class="in_block"><br />
                        <h4>@Model.AdditionalPage.Title</h4>
                        @Html.Raw(Model.AdditionalPage.Text)
                    </div>
                }
            </div>
        </div>
    </div>
    <div class="sidebar">
        <div class="in_sidebar down clearfix">
            @Html.Partial("_ReserveRoomPartial", new ReserveRoomModel())
        </div>
    </div>
</div>